#!/bin/bash
echo "Download "$1" form "$2" to "$3 "at" $4
#echo $1
#echo $2
#echo $3

mkdir $4
cd $4

a=_;
b=.html;
#num=$3;

for((i=$2;i<=$3;i++));do 
	path=$1$a$i$b;

	echo "download"$path;
	wget -m --accept=jpg $path;
	echo $? 


done


